package anasazi;

import repast.simphony.space.continuous.ContinuousSpace;
import repast.simphony.space.continuous.NdPoint;
import repast.simphony.space.grid.Grid;
import repast.simphony.space.grid.GridPoint;

public class Patch {	
	
	private static final int harvestAdjustment = 0;
	
	private static final String type = "patch"; 
	
	private ContinuousSpace<Object> space;
	private Grid<Object> grid;
	//private int energy, startingEnergy;
	
	//patches-own [value watersource zone apdsi hydro quality maizeZone yield BaseYield ocfarm ochousehold nrh]
	             
 	public String zone; 
	
 	//public Object apdsi;
 	//public Object nrh; 
 	
	public int hydro;
	public int quality; 
		 
	public int watersource;
	public int ocfarm;
	public int ochousehold;
	
	public double baseYield;
	public int yield;
	public boolean farmed;
	public double waterDistance;
	public  location;
	
	 

	public Patch(ContinuousSpace<Object> space, Grid<Object> grid) {
		this.space = space;
		this.grid = grid;
		this.location = grid.getLocation(this);
	}
	
	public void harverstConsumption(){
		
		this.baseYield = (this.yield * this.quality * harvestAdjustment);
		
	}
	
	
}
